using System;
using System.Reflection;

namespace IssueIT.Core.Configuration.Settings
{
	public class ConversionIssue
	{
		private readonly object _item;
		private readonly PropertyInfo _property;
		private readonly object _value;
		private readonly Exception _exception;
		private readonly string _message;

		public ConversionIssue(object item, PropertyInfo property, object value, Exception exception, string message)
		{
			_item = item;
			_property = property;
			_value = value;
			_exception = exception;
			_message = message;
		}

		public object Item
		{
			get
			{
				return _item;
			}
		}

		public PropertyInfo Property
		{
			get
			{
				return _property;
			}
		}

		public object Value
		{
			get
			{
				return _value;
			}
		}

		public Exception Exception
		{
			get
			{
				return _exception;
			}
		}

		public string Message
		{
			get
			{
				return _message;
			}
		}
	}
}